﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Gqq.Common.Helper;
using GqqMvcWeb.Models.Database;
using log4net;

namespace GqqMvcWeb.Controllers
{
    public class TutorialController : Controller
    {
        //
        // GET: /Tutorial/
        private TutorialDBContext db = new TutorialDBContext();

        public ActionResult Index()
        {
            // 当读取学生信息时，会自动关联enrollment表，读出相应的报道信息。
            var stus = db.Multkeys.Where(x => x.id1 == 1);
            foreach (var stu in stus)
            {
                BossLogManager.DLog.DebugFormat("id1:{0},id2:{1},value:{2}", stu.id1, stu.id2, stu.value);

            }
            ViewBag.Message = "测试页面";
            return View();
        }

    }
}
